//
//  MyTextCell.m
//  MyTrip
//
//  Created by zhang on 15/9/1.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "MyTextCell.h"
#import "DKNightVersion.h"


@implementation MyTextCell

- (void)dealloc
{
    [_myLabel release];
    [super dealloc];
}


- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
         [DKNightVersionManager addClassToSet:self.class];
        self.nightBackgroundColor = UIColorFromRGB(0x343434);
        self.myLabel = [[[UILabel alloc] initWithFrame:CGRectMake(20 * OffWidth, 0, [[UIScreen mainScreen] bounds].size.width, self.frame.size.height)] autorelease];
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self.contentView addSubview:_myLabel];
        
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
